import fetch from './util/fetch';

/**
 * 消息列表
 * pageNum,
 * pageSize,
 * isRead, true:已读，false，未读
 * */
export function getMessageList(data) {
  return fetch({
    url: 'user/inmail/list',
    method: 'get',
    params: data
  });
}

/**
 * 设置消息已读
 * ids: '111,222,333'
 * */
export function updateMessageList(data) {
  return fetch({
    url: 'user/inmail/update',
    method: 'put',
    data: data
  });
}
